<script setup lang="ts">
import {registerConfig as config} from '@/utils/editor-config'

import data from '@/data.json';
import Editor from "@/packages/editor";
import {ref,reactive, provide} from "vue";
const state = ref(data)


provide('config',config);//（Vue3全局组件通信之provide / inject）

</script>
<template >
  <div class="demo">
      <Editor v-model="state" ></Editor>
  </div>
</template>
<style scoped lang="sass">
</style>
